package com.neusoft.blog.mapper;

import com.neusoft.blog.bean.Role;
import com.neusoft.blog.bean.UserUtile;
import com.neusoft.blog.bean.Userinfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    Userinfo login(@Param("username") String username,@Param("password") String password);

    List<Userinfo> seletUser();


    int updeteStatus(Boolean enabled, Integer id);

    UserUtile findUser(String loginname);

    int delUser(Integer id);



    ////---------------------
    Userinfo loadUserByUsername(String username);

    List<Role> getRolesById(Integer uid);
}
